//
//  UserDetaileTableViewCell.m
//  projectOfTeamSample
//
//  Created by lanou3g on 15/11/18.
//  Copyright © 2015年 liukai. All rights reserved.
//

#import "UserDetaileTableViewCell.h"
#import <AVUser.h>
@interface UserDetaileTableViewCell ()


@property (nonatomic,strong)UILabel *loginOrUnlog;
@property (nonatomic,strong)UIImageView *loginImageView;
@end

@implementation UserDetaileTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupSubViews];
    }
    return self;
}

-(void)setupSubViews{
    self.imageview = [[UIImageView alloc]initWithFrame:CGRectMake(self.contentView.frame.origin.x +30, self.contentView.frame.origin.y +10, self.contentView.frame.size.width / 13, self.contentView.frame.size.width / 13)];
    self.detaileLable = [[UILabel alloc]initWithFrame:CGRectMake(self.contentView.frame.origin.x +20 +self.contentView.frame.size.width / 5, self.contentView.frame.origin.y +10 ,self.contentView.frame.size.width / 3, 30)];
    self.loginOrUnlog = [[UILabel alloc]initWithFrame:CGRectMake(self.contentView.frame.origin.x +20 +self.contentView.frame.size.width / 5, self.contentView.frame.origin.y +10 ,self.contentView.frame.size.width / 3, 30)];
    self.loginImageView = [[UIImageView alloc]initWithFrame:CGRectMake(self.contentView.frame.origin.x +30, self.contentView.frame.origin.y +10, self.contentView.frame.size.width / 13, self.contentView.frame.size.width / 13)];
    // 添加到父视图
    [self.contentView addSubview:self.imageview];
    [self.contentView addSubview:self.detaileLable];
}

-(void)userDetaileCellLayoutWithArray:(NSArray *)array imagearray:(NSArray *)imagearray index:(NSInteger)index{
    
    self.imageview.image = [UIImage imageNamed:[NSString stringWithString:imagearray[index]]];
    
    self.detaileLable.text = array[index];

}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
